package com.sheng.whyclass.work.model;

import com.google.gson.Gson;
import com.google.gson.JsonSyntaxException;
import com.google.gson.annotations.SerializedName;
import com.sheng.whyclass.person.model.BaseResult;

import java.util.ArrayList;

/**
 * Created by Administrator on 2016/4/4.
 */
public class ContentData extends BaseResult{


    /**
     * static : 1
     * data : [{"id":"6","topic":"一道题目","content":"1+3=？","issue_time":"2016-03-22 23:09:05"},{"id":"5","topic":"1+2","content":"=？","issue_time":"2016-03-22 23:08:34"},{"id":"7","topic":"这道题目","content":"1+3=？","issue_time":"2016-03-22 23:09:20"},{"id":"11","topic":"123","content":"123","issue_time":"2016-03-24 23:53:20"},{"id":"12","topic":"1+4","content":"计算题","issue_time":"2016-03-24 23:55:54"},{"id":"15","topic":"第一章","content":"1.一个学校有多 个分院 ，每个分院有各自的 网站 ，如果提供一台 WEB 服务器，如何设 置？ 2.在访问一些网 站时， 为什么只需要输入域 名就 能访问网站主页？","issue_time":"2016-03-28 21:45:53"},{"id":"16","topic":"第二章","content":"1.文件系统、本 地 IIS 、 FTP 站点和远程站点的 区别是什么？ 2.说明什么是虚 拟主机 ， Internet 上提的虚拟主 机是如何运行的？","issue_time":"2016-03-28 21:46:20"},{"id":"17","topic":"第三章","content":"1、静态网页和动 态网页 的区别？ 2、为何把 .htm 文件的扩展名改为 .aspx ，而不能把 .aspx 文件扩展名改为 .htm ？ ","issue_time":"2016-03-28 21:47:27"},{"id":"18","topic":"第四章","content":"1.简述 web.config 文件的特点和作用 ","issue_time":"2016-03-28 21:48:07"},{"id":"19","topic":"第五章","content":"1.说明修饰符 public 、 internal 、 protected 、 protected internal 、 private 的区别？ ","issue_time":"2016-03-28 21:48:35"},{"id":"20","topic":"第六章","content":"1.值类型和引用 类型有 什么区别？ ","issue_time":"2016-03-28 21:48:58"},{"id":"21","topic":"第七章","content":"1.举例说明装箱 和拆箱 的作用","issue_time":"2016-03-28 21:49:25"},{"id":"22","topic":"第八章","content":"1） 说明 Image 、 ImageButton 、 ImageMap 控件的区别 ","issue_time":"2016-03-28 21:49:49"},{"id":"23","topic":"第九章","content":"1说明 <a> 元素、 LinkButton 、 HyperLink 控件的区别","issue_time":"2016-03-28 21:50:17"},{"id":"24","topic":"第十章","content":"1举例说明 Panel 、 MultiView 、 Wizard 控件的作用 ","issue_time":"2016-03-28 21:50:46"},{"id":"25","topic":"第十一章","content":"1、简述页面重定 向的不 同形式和使用区别 ","issue_time":"2016-03-28 21:51:33"},{"id":"26","topic":"第十二章","content":"1、简述利用 Profile 管理个人状态信息的过 程 ","issue_time":"2016-03-28 21:51:58"},{"id":"27","topic":"第十三章","content":"1、举例说明身份 验证和 授权验证过程","issue_time":"2016-03-28 21:52:18"},{"id":"28","topic":"第十四章","content":"1、简述包含 ASP.NET 母版页的页面运行时 的显 示原理 ","issue_time":"2016-03-28 21:52:41"},{"id":"29","topic":"第十五章","content":"1、描述网站地图文件的 基本 格 式 ","issue_time":"2016-03-28 21:53:01"},{"id":"30","topic":"第十六章","content":"1、举例说明如何利用嵌 套方 式解决复杂的网站导 航问 题 ","issue_time":"2016-03-28 21:53:23"},{"id":"31","topic":"第十七章","content":"1、 利用 AJAX 技术的 Web 应 用程序和传统的 Web 应用程序比较有什么优点 ？","issue_time":"2016-03-28 21:54:12"},{"id":"32","topic":"第十八章","content":"1、最常用的 ASP.NET AJAX 服务器控件有哪些？ ","issue_time":"2016-03-28 21:54:31"},{"id":"33","topic":"第十九章","content":"1、如何在母版页中使用 ASP.NET AJAX? ","issue_time":"2016-03-28 21:54:53"},{"id":"34","topic":"第二十章","content":"1、AJAX 包含哪些技术？ ","issue_time":"2016-03-28 21:55:23"}]
     */

    @SerializedName("static")
    private int staticX;
    /**
     * id : 6
     * topic : 一道题目
     * content : 1+3=？
     * issue_time : 2016-03-22 23:09:05
     */

    private ArrayList<DataBean> data;

    public static ContentData getFromJson(String json) {
        if (json == null) {
            return null;
        }
        Gson gson = new Gson();
        ContentData info = null;
        try {
            info = gson.fromJson(json, ContentData.class);
        } catch (JsonSyntaxException jsonSyntaxException) {
        }
        return info;
    }

    public int getStaticX() {
        return staticX;
    }

    public void setStaticX(int staticX) {
        this.staticX = staticX;
    }

    public ArrayList<DataBean> getData() {
        return data;
    }

    public void setData(ArrayList<DataBean> data) {
        this.data = data;
    }

    public static class DataBean {
        private String id;
        private String topic;
        private String content;
        private String issue_time;

        public String getAnswer_content() {
            return answer_content;
        }

        public void setAnswer_content(String answer_content) {
            this.answer_content = answer_content;
        }

        private String w_c_id;
        private String answer_content;

        public String getW_c_id() {
            return w_c_id;
        }

        public void setW_c_id(String w_c_id) {
            this.w_c_id = w_c_id;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getTopic() {
            return topic;
        }

        public void setTopic(String topic) {
            this.topic = topic;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public String getIssue_time() {
            return issue_time;
        }

        public void setIssue_time(String issue_time) {
            this.issue_time = issue_time;
        }
    }
}
